package com.hsjk.szwj.module.pay.dal.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hsjk.szwj.module.pay.dal.dataobject.order.PayOrderDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/22 01:22
 **/
@Mapper
public interface IPayOrderMapper extends BaseMapper<PayOrderDO> {
    Map payCount(Map param);

    List<Map> payTypeCount(Map param);

    List<Map> selectOrderCount(Map param);

    /** 更新订单退款金额和次数 **/
    int updateRefundAmountAndCount(@Param("payOrderId") Long payOrderId,
                                   @Param("currentRefundAmount") Long currentRefundAmount);
}
